﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmTaoDeThi.aspx.cs" Inherits="frmTaoDeThi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style3
        {
            width: 135px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Ma De"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtMaDe" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnThem" runat="server" Text="Them" Width="60px" 
                        onclick="btnThem_Click" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" Text="Ten Quy Tac"></asp:Label>
                </td>
                <td class="style3">
                    <asp:DropDownList ID="drlQuytac" runat="server" DataSourceID="SqlDataSource1" 
                        DataTextField="MaQT" DataValueField="MaQT" Height="16px" Width="126px">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Last_TNTrucTuyenConnectionString %>" 
                        SelectCommand="SELECT [MaQT] FROM [QUYTACDE]"></asp:SqlDataSource>
                </td>
                <td>
                    <asp:Button ID="btnSua" runat="server"  Text="Sua" 
                        Width="61px" onclick="btnSua_Click" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label3" runat="server" Text="Ten Mon"></asp:Label>
                </td>
                <td class="style3">
                    <asp:DropDownList ID="drlTenmon" runat="server" Height="16px" Width="125px">
                        <asp:ListItem>Toan</asp:ListItem>
                        <asp:ListItem>Ly</asp:ListItem>
                        <asp:ListItem>Hoa</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnXoa" runat="server" Text="Xoa" Width="61px" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label4" runat="server" Text="Ten De Thi"></asp:Label>
                </td>
                <td class="style3">
                    <asp:TextBox ID="txtTenDT" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnHuy" runat="server" Text="Huy" Width="62px" />
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:Label ID="Label5" runat="server" Text="Thong Tin De Thi"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Chi Tiet De Thi"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                        DataKeyNames="MaDT" DataSourceID="SqlDataSource2" ForeColor="#333333" 
                        GridLines="None" onselectedindexchanged="GridView1_SelectedIndexChanged">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:CommandField ShowSelectButton="True" />
                            <asp:BoundField DataField="MaDT" HeaderText="MaDT" ReadOnly="True" 
                                SortExpression="MaDT" />
                            <asp:BoundField DataField="MaQT" HeaderText="MaQT" SortExpression="MaQT" />
                            <asp:BoundField DataField="MaMon" HeaderText="MaMon" SortExpression="MaMon" />
                            <asp:BoundField DataField="TenDeThi" HeaderText="TenDeThi" 
                                SortExpression="TenDeThi" />
                        </Columns>
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Last_TNTrucTuyenConnectionString %>" 
                        SelectCommand="SELECT * FROM [DETHI]"></asp:SqlDataSource>
                </td>
                <td>
                    <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" 
                        GridLines="None">
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
